package createPattern.factoryPattern.simpleFactory.product;

public class PorscheCar extends Car {

	private double length;
	private double width;
	private double height;

	public PorscheCar(String name, String color) {
		super(name, color, "Porsche");
	}

	public PorscheCar(String name, String color, double length, double width, double height) {
		super(name, color, "Porsche");
		this.width = width;
		this.length = length;
		this.height = height;
	}

	@Override
	public void run() {
		System.out.println("PorscheCar need to prepare 5 minutes for Run!");
		super.run();
	}

	public void show() {
		System.out.println("PorscheCar has a beatiful size: " + length + " * " + width + " * " + height);
	}

}
